function  ServiceLocator(){
	
	this.dao;
	this.model = ModelLocator.getInstance();
	if ( ServiceLocator.instance != null )
	{
		throw( "Singleton class has already been instantiated" );
	} else
	{
		ServiceLocator.instance = this;
		this.dao = DaoFactory.getInstance( this.model.config.dao );
	}
}

ServiceLocator.getInstance = function(){
	if (ServiceLocator.instance == null) {
		ServiceLocator.instance = new ServiceLocator();
	}
	return ServiceLocator.instance;
}

ServiceLocator.instance;